package com.etc.entity;

import org.apache.tomcat.jni.User;

import java.io.Serializable;
import java.util.Date;

/**
 * fx_playlist
 * @author 
 */
public class FxPlaylist implements Serializable {
    private Integer id;

    private String playlistname;

    private Integer userid;

    private String createtime;

    private Integer status;

    private String imgpath;

    private  String username;

    public FxPlaylist() {
    }

    public FxPlaylist(Integer id, String playlistname, Integer userid, String createtime, Integer status, String imgpath, String username) {
        this.id = id;
        this.playlistname = playlistname;
        this.userid = userid;
        this.createtime = createtime;
        this.status = status;
        this.imgpath = imgpath;
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "FxPlaylist{" +
                "id=" + id +
                ", playlistname='" + playlistname + '\'' +
                ", userid=" + userid +
                ", createtime=" + createtime +
                ", status=" + status +
                ", imgpath='" + imgpath + '\'' +
                ", username='" + username + '\'' +
                '}';
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPlaylistname() {
        return playlistname;
    }

    public void setPlaylistname(String playlistname) {
        this.playlistname = playlistname;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getImgpath() {
        return imgpath;
    }

    public void setImgpath(String imgpath) {
        this.imgpath = imgpath;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FxPlaylist other = (FxPlaylist) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPlaylistname() == null ? other.getPlaylistname() == null : this.getPlaylistname().equals(other.getPlaylistname()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getImgpath() == null ? other.getImgpath() == null : this.getImgpath().equals(other.getImgpath()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPlaylistname() == null) ? 0 : getPlaylistname().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getImgpath() == null) ? 0 : getImgpath().hashCode());
        return result;
    }

}